const admin=require('./admin');
const sql=require('./sql');
const uuid=require('uuid');
const md5=require('md5');

sql.addData(admin,{
    adminId:'admin-'+uuid.v1(),
    userName:'admin',
    passWord:md5('123456'),
    registerTime:Date.now(),
    power:0  //假设power为0，0为超级
}).then(()=>{
    console.log("I ok")
})

sql.addData(admin,{
    adminId:'admin-'+uuid.v1(),
    userName:'apple',
    passWord:md5('123456'),
    registerTime:Date.now(),
    power:1  //假设power为0，0为超级
}).then(()=>{
    console.log("I o")
})